package com.lagou.edu.demo.controller;

import com.lagou.edu.demo.service.IDemoService;
import com.lagou.edu.lagouframework.annotations.LagouAutowired;
import com.lagou.edu.lagouframework.annotations.LagouController;
import com.lagou.edu.lagouframework.annotations.LagouRequestMapping;
import com.lagou.edu.lagouframework.annotations.LagouSecurity;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author xq
 * @description 权限
 * @date 2021/05/19 13:57:09
 **/
@LagouController
@LagouRequestMapping("/auth")
public class AuthController {

    @LagouAutowired
    private IDemoService demoService;

    @LagouRequestMapping("/query")
    public void query(HttpServletRequest request, HttpServletResponse response, String name) {
        demoService.query(name);
    }
}
